<template>
  <view class="house-room">
    <u-cell-group :border="false">
      <house-cell
        :url="'/pkg-house/add-houseInfo/add-houseInfo?area='+item.area+'&build='+item.build+'&room='+item.room"
        v-for="item in room" :key="item.id" :title="item.area+item.build+item.room"></house-cell>
    </u-cell-group>
  </view>
</template>

<script>
  export default {
    data() {
      return {
        room: []
      }
    },
    methods: {

    },
    onLoad({
      area,
      build
    }) {
      // console.log(area, build);
      for (let i = 1; i <= 10; i++) {
        if (i < 10) {
          this.room.push({
            id: i,
            area,
            build,
            room: ' 10' + i
          })
        } else {
          this.room.push({
            id: i,
            area,
            build,
            room: ' 1' + i
          })
        }
      }
    }
  }
</script>

<style lang="scss" scoped>
  .house-number {
    height: 100%;
    background-color: #FAFAFA;
  }

  ::v-deep .u-cell__body {
    height: 102rpx;
    padding: 0 25rpx;

    .u-cell__title-text {
      color: #333333 !important;
      font-size: 28rpx !important;
      line-height: 1.5 !important;
    }
  }
</style>
